<?php
if(basename($_SERVER['SCRIPT_NAME']) != "barangbukti.php") {
	header("Location:../../barangbukti.php");
	die();
}
?>
<div class="da-panel collapsible">

<div class="da-panel-header">
	<span class="da-panel-title">
		<i class="icon-search"></i> Pencarian Barang Bukti
	</span>
</div>

<div class="da-panel-toolbar">
	<div class="btn-toolbar">
		<div class="btn-group">
			<a href="barangbukti.php" class="btn">Buku Besar</a>
			<button class="btn disabled">Pencarian</button>
			<a href="?statistik" class="btn">Statistik</a>
		</div>
	</div>
</div>

<div class="da-panel-content da-form-container">
<form class="da-form da-form-inline" method="post" target="">
	<div class="da-form-row da-column-row">
		<div class="da-form-item da-form-cols">
			<div class="col-2-8">
				<label class="da-form-label">Jenis</label>
				<select name="jenis">
				<?php 
					$q_jenis = mysql_query("SELECT * FROM t_bb_jenis");
					while($dt_jenis = mysql_fetch_array($q_jenis)) {
				?>
				<option value="<?php echo $dt_jenis['kd_jenis'] ?>"><?php echo $dt_jenis['nm_jenis'] ?></option>
				<?php } ?>
			</select>
			</div>
			<div class="col-2-8">
				<label class="da-form-label">Keterangan</label>
				<input type="text" name="keterangan" />
			</div>
			<div class="col-2-8">
				<label class="da-form-label" name="pinjam">Dipinjam</label>
				<select name="pinjam">
					<option value="">SEMUA</option>
					<option value="0">TIDAK</option>
					<option value="1">YA</option>
				</select>
			</div>
			<div class="col-2-8">
				<input class="btn btn-danger" type="submit" name="cari" value="Cari" />
			</div>
		</div>
	</div>
</form>
</div>

</div>

<?php if(isset($_POST['cari'])) { ?>
<div class="da-panel">

<div class="da-panel-header">
	<span class="da-panel-title">
		<i class="icon-suitcase"></i> Hasil Pencarian
	</span>
</div>

<div class="da-panel-content da-form-container">
<div class="da-message error">
	Data tidak ditemukan
</div>
</div>

</div>
<?php } ?>
